package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author long.rao
 * @version v1.0
 * @date 2019/8/22 16:34
 * @since v1.0
 */
@Getter
public enum NumberTypeEnum {

    NOMAL("1","enum.numberType.descript.nomal"),
    RATE("2","enum.numberType.descript.rate"),
    ;

    NumberTypeEnum(String code, String descript) {
        this.code = code;
        this.descript = descript;
    }

    private String code;
    private String descript;

    public String getDescript() {
        return I18nMessageUtil.getMessage(descript);
    }
}
